<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>测试js等待一段时间</title>
    <script src="../zujian/han/han.js"></script>
</head>
<body>
<script type="text/javascript">
    waitSomeMs();
    //等三秒才会执行//注意写成函数到han.js里再调用无效
    function waitSomeMs(){
         setTimeout(function () {
            alert("我就是让你等待一段时间而已呀")
        },2000)
    }


</script>
</body>
</html>